package com.canbot.u05.network

import com.canbot.u05.bean.JsonResponse
import com.canbot.u05.bean.dance.DanceListInfo
import com.canbot.u05.bean.dance.DefaultPicBean
import com.canbot.u05.bean.dance.ResponseInfo
import retrofit2.Call
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

/**
 * Created by tao.liu on 2019/6/28.
 * 舞蹈相关api
 */
interface DanceApi {
        /**
         * 查询所有舞蹈
         */
        @FormUrlEncoded
        @POST("danceManager")
        fun queryAllDance(@Field("queryAll") json: String): Call<DanceListInfo>

        /**
         * 修改舞蹈的使用禁用
         */
        @FormUrlEncoded
        @POST("danceManager")
        fun editEnabled(@Field("editEnabled") json: String): Call<ResponseInfo>

        /**
         * 获取舞蹈默认图片
         */
        @FormUrlEncoded
        @POST("danceManager")
        fun defaultPic(@Field("defaultPic") json: String):Call<DefaultPicBean>

        //update
        @FormUrlEncoded
        @POST("danceManager")
        fun updateDanceInfo(@Field("update") json: String):Call<ResponseInfo>

        //getAudioList
        @FormUrlEncoded
        @POST("getAudioList")
        fun getAudioList(@Field("path") path:String):Call<JsonResponse>

        //addDance
        @FormUrlEncoded
        @POST("danceManager")
        fun addDance(@Field("addDance") json: String):Call<ResponseInfo>

        //delDance
        @FormUrlEncoded
        @POST("danceManager")
        fun delDance(@Field("delDance") id: String):Call<ResponseInfo>


}